Optimal. Leaf size=41 \[ \frac{\tanh ^{-1}\left (\frac{a-b \cot ^2(x)}{\sqrt{a+b} \sqrt{a+b \cot ^4(x)}}\right )}{2 \sqrt{a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0691749, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.267, Rules used = {3670, 1248, 725, 206} \[ \frac{\tanh ^{-1}\left (\frac{a-b \cot ^2(x)}{\sqrt{a+b} \sqrt{a+b \cot ^4(x)}}\right )}{2 \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3670
Rule 1248
Rule 725
Rule 206
Rubi steps
\begin{align*} \int \frac{\cot (x)}{\sqrt{a+b \cot ^4(x)}} \, dx &=-\operatorname{Subst}\left (\int \frac{x}{\left (1+x^2\right ) \sqrt{a+b x^4}} \, dx,x,\cot (x)\right )\\ &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{(1+x) \sqrt{a+b x^2}} \, dx,x,\cot ^2(x)\right )\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{a+b-x^2} \, dx,x,\frac{a-b \cot ^2(x)}{\sqrt{a+b \cot ^4(x)}}\right )\\ &=\frac{\tanh ^{-1}\left (\frac{a-b \cot ^2(x)}{\sqrt{a+b} \sqrt{a+b \cot ^4(x)}}\right )}{2 \sqrt{a+b}}\\ \end{align*}
Mathematica [A] time = 0.018883, size = 41, normalized size = 1. \[ \frac{\tanh ^{-1}\left (\frac{a-b \cot ^2(x)}{\sqrt{a+b} \sqrt{a+b \cot ^4(x)}}\right )}{2 \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.035, size = 65, normalized size = 1.6 \begin{align*}{\frac{1}{2}\ln \left ({\frac{1}{1+ \left ( \cot \left ( x \right ) \right ) ^{2}} \left ( 2\,a+2\,b-2\, \left ( 1+ \left ( \cot \left ( x \right ) \right ) ^{2} \right ) b+2\,\sqrt{a+b}\sqrt{ \left ( 1+ \left ( \cot \left ( x \right ) \right ) ^{2} \right ) ^{2}b-2\, \left ( 1+ \left ( \cot \left ( x \right ) \right ) ^{2} \right ) b+a+b} \right ) } \right ){\frac{1}{\sqrt{a+b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot \left (x\right )}{\sqrt{b \cot \left (x\right )^{4} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.29503, size = 686, normalized size = 16.73 \begin{align*} \left [\frac{\log \left (\frac{1}{2} \,{\left (a^{2} + 2 \, a b + b^{2}\right )} \cos \left (2 \, x\right )^{2} + \frac{1}{2} \, a^{2} + \frac{1}{2} \, b^{2} + \frac{1}{2} \,{\left ({\left (a + b\right )} \cos \left (2 \, x\right )^{2} - 2 \, a \cos \left (2 \, x\right ) + a - b\right )} \sqrt{a + b} \sqrt{\frac{{\left (a + b\right )} \cos \left (2 \, x\right )^{2} - 2 \,{\left (a - b\right )} \cos \left (2 \, x\right ) + a + b}{\cos \left (2 \, x\right )^{2} - 2 \, \cos \left (2 \, x\right ) + 1}} -{\left (a^{2} - b^{2}\right )} \cos \left (2 \, x\right )\right )}{4 \, \sqrt{a + b}}, -\frac{\sqrt{-a - b} \arctan \left (\frac{{\left ({\left (a + b\right )} \cos \left (2 \, x\right )^{2} - 2 \, a \cos \left (2 \, x\right ) + a - b\right )} \sqrt{-a - b} \sqrt{\frac{{\left (a + b\right )} \cos \left (2 \, x\right )^{2} - 2 \,{\left (a - b\right )} \cos \left (2 \, x\right ) + a + b}{\cos \left (2 \, x\right )^{2} - 2 \, \cos \left (2 \, x\right ) + 1}}}{{\left (a^{2} + 2 \, a b + b^{2}\right )} \cos \left (2 \, x\right )^{2} + a^{2} + 2 \, a b + b^{2} - 2 \,{\left (a^{2} - b^{2}\right )} \cos \left (2 \, x\right )}\right )}{2 \,{\left (a + b\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot{\left (x \right )}}{\sqrt{a + b \cot ^{4}{\left (x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.51784, size = 78, normalized size = 1.9 \begin{align*} \frac{\log \left ({\left | -{\left (\sqrt{a + b} \cos \left (x\right )^{2} - \sqrt{a \cos \left (x\right )^{4} + b \cos \left (x\right )^{4} - 2 \, a \cos \left (x\right )^{2} + a}\right )}{\left (a + b\right )} + \sqrt{a + b} a \right |}\right )}{2 \, \sqrt{a + b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]